package win.smartown.app.viewController.loading;

import android.view.View;
import android.view.ViewStub;

import win.smartown.app.R;

/**
 * Created by smartown on 2017/3/18.
 * <br>
 * Description:数据为空提示
 */
public class LoadingEmptyController implements LoadingEmptyInterface {

    private View view;

    public LoadingEmptyController(ViewStub viewStub) {
        viewStub.setLayoutResource(R.layout.layout_loading_no_data);
        view = viewStub.inflate();
    }

    @Override
    public void resetData() {
        view.setVisibility(View.GONE);
    }

    @Override
    public void noData() {
        view.setVisibility(View.VISIBLE);
    }
}
